package com.easipass.framework.eirframeworkcoredsl;

import java.util.List;

public abstract class AstNode {

    protected int startPos;

    protected int endPos;

    public AstNode(int startPos, int endPos) {
        this.startPos = startPos;
        this.endPos = endPos;
    }

    public int getStartPos() {
        return startPos;
    }

    public int getEndPos() {
        return endPos;
    }

    public abstract String stringify(boolean includePositionInfo);

    public String stringify() {
        return stringify(false);
    }

    public abstract void accept(Visitor visitor);

}
